package com.finance3.springmvc.bean;

import java.io.Serializable;

public class User {
	private int id;
	private String uname;
//	@NotBlank(message="用户账号不能为空")
	private String uid;
	private String upw;
	private double surplus;
	public double getSurplus() {
		return surplus;
	}
	public void setSurplus(double surplus) {
		this.surplus = surplus;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUname() {
		return uname;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", uname=" + uname + ", uid=" + uid + ", upw=" + upw + ", surplus=" + surplus + "]";
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public String getUpw() {
		return upw;
	}
	public void setUpw(String upw) {
		this.upw = upw;
	}

	public User(int id, String uname, String uid, String upw, double surplus) {
		super();
		this.id = id;
		this.uname = uname;
		this.uid = uid;
		this.upw = upw;
		this.surplus = surplus;
	}
	public User() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
